package com.xyw.code.bus.common.entity.form;

//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 * User: xuyiwei
 * Date: 2020/2/19
 * Time: 下午3:01
 * Email: 1328312923@qq.com
 * Description: No Description
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
//@ApiModel(value = "消息总线form")
public class SendMessageForm {
//    @ApiModelProperty(value = "发送消息的msg")
    private String message;
//    @ApiModelProperty(value = "发送消息的交换机")
    private String exchange;
//    @ApiModelProperty(value = "发送消息的key")
    private String routeKey;
//    @ApiModelProperty(value = "消息唯一标识id")
    private String correlationId;

    private String exceptionMsg;

    public static SendMessageForm build(String message,String exchange,String routeKey,String correlationId,String exceptionMsg){
        return new SendMessageForm(message,exchange,routeKey,correlationId,exceptionMsg);
    }
}
